package com.simtop.dao;

import com.simtop.common.ServerResponse;
import com.simtop.vo.Swread;
import com.simtop.vo.TypesState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface SwreadMapper {
    List<Swread> findall(@Param("tameName") String tameName,
                           @Param("types") String types,
                           @Param("readTimeBegins") String readTimeBegins,
                           @Param("readTimeEnds") String readTimeEnds,
                           @Param("column")String column,
                           @Param("order") String order,
                           @Param("coach")Integer coach);
     boolean deleteResources(Long[] id);
    TypesState selectTypes(@Param("coach")Integer coach);
    List<Swread> selectAll(@Param("coach")Integer coach);
    List<Swread> selectAll2(@Param("selectidlist") ArrayList<Integer> selectidlist,@Param("coach")Integer coach);
    TypesState selectScore(@Param("coach")Integer coach);
    List<Swread> findid(@Param("tameName") String tameName,
                         @Param("types") String types,
                         @Param("readTimeBegins") String readTimeBegins,
                         @Param("readTimeEnds") String readTimeEnds,
                         @Param("column")String column,
                         @Param("order") String order,
                         @Param("userid")Integer userid);
    TypesState userTypes(@Param("userid")Integer userid);
    TypesState userScore(@Param("userid")Integer userid);
    List<Swread> userAll(@Param("userid")Integer userid);
    List<Swread> userAll2(@Param("useridlist") ArrayList<Integer> useridlist);
}
